// cover some element-ui styles
$mainColor:#3b425d;
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  color: #ffffff;
  &:hover{color: $hoverColor};
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}


// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-tabs__header .el-tabs__item {
  font-size: 16px;
  width: 158px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border: none;
  &:not(.is-disabled):hover {
    color: $mainColor;
  }
}

.el-tabs--card>.el-tabs__header .el-tabs__nav {
  border-right: 1px solid #f5f5f5;
  border-bottom: none;
  border-left: none;
  border-top: none;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}
.el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
  border-bottom-color: #3b425d;
}
.el-pagination{
  .el-pagination__sizes .el-input .el-input__inner:hover{
    border-color: $mainColor
  }
 /*设置当前页码的样式，及鼠标移上其他页码时的样式,以及左右箭头鼠标移上的样式*/
  .el-pager li.active,.el-pager li:hover,.el-pagination button:hover {
    background-color: $mainColor;
  }

}
.el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: #fff;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: $mainColor;   // 进行修改背景和字体
  color: #fff;
}

.el-popover{
  height: 300px;
  overflow: auto;
}
// 复选框样式 修改
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: $mainColor;
  border-color: $mainColor;
}
.el-checkbox__inner:hover {
  border-color: $mainColor;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
    color: $mainColor;
}
.el-checkbox__input.is-focus .el-checkbox__inner {
    border-color: $mainColor;
}
// 解决所有的页面中表格对不齐的问题
.el-table th.gutter{
  display: table-cell!important;
}
// 实际上为了让表格可以垂直滚动造成的，添加了如下代码，对原生样式造成了影响。
// https://studyingpanda.blog.csdn.net/article/details/112776168
.el-table {
  overflow-y: auto !important;
}
// loading 颜色
.el-loading-spinner {
  .el-loading-text{
    color: $mainColor;
  }
  .path {
    stroke: $mainColor;
  }
}
.el-switch__label.is-active {
    color: $mainColor;
}

.el-select .el-input.is-focus .el-input__inner {
  border-color: $mainColor;
}
.el-input__inner:focus {
  border-color: $mainColor;
}

.el-button--primary {
  color: #FFF;
  background-color: $mainColor;
  border-color: $mainColor;
}
.el-button--primary:focus, .el-button--primary:hover, .el-button:hover{
  background: $mainColor;
  border-color: $mainColor;
  color: #FFF;
}
.el-table__body {
  width: 100% !important;
}
